﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" CodeBehind="JIHuaZYDJ.aspx.cs" Inherits="Web.Pages.YongShui._13.LAIHANGL.JIHuanZYDJ" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<%@ Register Src="~/Control/LAIHAN/UCLHJiHuaZYUserInfo.ascx" TagPrefix="uc1" TagName="UCLHJiHuaZYUserInfo" %>
<%@ Register Src="~/Control/LAIHAN/UCLHJiHuanZYJHXX.ascx" TagPrefix="uc1" TagName="UCLHJiHuanZYJHXX" %>
<%@ Register Src="~/Control/LAIHAN/UCLHCaiLiaoInfo.ascx" TagPrefix="uc1" TagName="UCLHCaiLiaoInfo" %>
<%@ Register Src="~/Control/LAIHAN/UCLHBtnBottom.ascx" TagPrefix="uc1" TagName="UCLHBtnBottom" %>
<%@ Register Src="~/Control/LAIHAN/UCLHSJBTNS.ascx" TagPrefix="uc1" TagName="UCLHSJBTNS" %>
<%@ Register Src="~/Control/LAIHAN/UCLHUserInfo.ascx" TagPrefix="uc1" TagName="UCLHUserInfo" %>







<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>计划转移登记</title>
    <script src="../../../JS/jquery.js"></script>
    <script src="../../../JS/AddEditCancel.js"></script>
    <script type="text/javascript">
        function BtnSHOUJIAN() {
           
            ZYJHCallbackControl.PerformCallback("shoujian");
        }
        function BtnSHOUJIANDJ() {
            if (confirm('是否确认收集齐全并登记')) {
                
                ZYJHCallbackControl.PerformCallback("dengji");
            }
        }
        function YM() {
            YMBtn.onClick();
        }
        function CheckCaiLiao(yhh) {
            hidYongHUH.Set("YHH", yhh);
            BtnCLSubmit.onClick();
        }
        
        function ASPxCallbackCommonComplete(rs) {
            var lists = rs.split('|');
            var key = lists[0];
            var code = lists[1];
            var msg = lists[2];

            if (key == "shoujian") {

                if (code < 0) {
                    alert(msg);
                }
                else {
                    alert(msg);
                    //window.close();
                    /*
                    var par = window.dialogArguments;
                    par.ReloadGV();
                    JiHuaZYHidList.Set("LaiHanID", lists[3]);
                    BtnReload.onClick();
                    */
                    parent.layer.closeAll();
                }

            }
            if (key == "dengji") {
                if (code < 0) {
                    alert(msg);
                }
                else {
                    alert(msg);
                    //var par = window.dialogArguments;
                    //par.ReloadGV();
                    //JiHuaZYHidList.Set("LaiHanID", lists[3]);
                    //BtnReload.onClick();
                    parent.layer.closeAll();
                }
            }
        }
        function ReloadFather()
        {
            var par = window.dialogArguments;
            par.ReloadGV();
        }
        function GetQueryString(name) {

            var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));

            if (result == null || result.length < 1) {

                return "";

            }

            return result[1];

        }
        function OpenWJLB() {
            var yhh = GetYONGHUH();

            var laihan = "";
            if (GetQueryString("id") != "" || (JiHuaZYHidList.Contains("LaiHanID") && JiHuaZYHidList.Get("LaiHanID") != "" && JiHuaZYHidList.Get("LaiHanID") != "0")) {
                yhh = $("#h_yonghu").val();
                laihan = $("#h_laihan").val();
            }

            OpenWenjian(laihan, yhh);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="tabletitle1">
            计划转移登记
        </div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel runat="server" ID="updatePanel1">
            <ContentTemplate>
                <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="JiHuaZYHidList" runat="server"></dx:ASPxHiddenField>
                <dx:ASPxHiddenField ID="hidYongHUH" ClientInstanceName="hidYongHUH" runat="server"></dx:ASPxHiddenField>
                <div style="display: none">
                    <dx:ASPxButton ID="ASPxButton1" ClientInstanceName="YMBtn" runat="server" OnClick="BindJH" Text="ASPxButton"></dx:ASPxButton>
                    <dx:ASPxButton ID="ASPxButton4" ClientInstanceName="BtnCLSubmit" runat="server" OnClick="BtnCheck_Click" Text="ASPxButton"></dx:ASPxButton>
                     <dx:ASPxButton ID="BtnReload" ClientInstanceName="BtnReload" runat="server" OnClick="BtnReload_Click" Text="ASPxButton"></dx:ASPxButton>

                </div>
                <div>
                    <dx:ASPxCallback ID="CallbackControl" ClientInstanceName="ZYJHCallbackControl" OnCallback="ASPxCallbackCommon_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallbackCommonComplete(e.result);}" runat="server"></dx:ASPxCallback>
                    <asp:HiddenField ID="h_laihan" runat="server" />
                    <asp:HiddenField ID="h_yonghu" runat="server" />
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                    <uc1:UCLHJiHuaZYUserInfo runat="server" ID="UCLHJiHuaZYUserInfo" />
                    <uc1:UCLHCaiLiaoInfo runat="server" ID="UCLHCaiLiaoInfo" LaiHanLX="计划转移" />
                    <br />
                    <uc1:UCLHJiHuanZYJHXX runat="server" ID="UCLHJiHuanZYJHXX" />
                    <div style="text-align:right">
                    <uc1:UCLHBtnBottom runat="server" ID="UCLHBtnBottom" LaiHanLX="计划转移" />
                        </div>
                    <hr />
                    <table style="margin: 0px auto" runat="server" id="DengJi">
                        <tr>
                            <td>
                                <dx:ASPxButton ID="BtnALL" AutoPostBack="false" runat="server" UseSubmitBehavior="false" Text="收件齐全并登记">
                                    <ClientSideEvents Click="function(s,e){BtnSHOUJIANDJ();}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="BtnSJ" runat="server" AutoPostBack="false"
                                    UseSubmitBehavior="false" Text="收件">
                                    <ClientSideEvents Click="function(s,e){BtnSHOUJIAN();}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                               <%-- <dx:ASPxButton ID="BtnFQ" runat="server" UseSubmitBehavior="false" AutoPostBack="false" Text="放弃">
                                    <ClientSideEvents Click="function(s,e){window.close()}" />
                                </dx:ASPxButton>--%>
                            </td>
                        </tr>
                    </table>
                    <table style="margin: 0px auto" visible="false" runat="server" id="ShouLi">
                        <tr>

                            <td align="center">
                               
                                <dx:ASPxButton ID="BtnBack" Visible="false" runat="server" UseSubmitBehavior="false" OnClick="BtnBack_Click" Text="退回"></dx:ASPxButton>
                                <dx:ASPxButton ID="BtnSL" runat="server" UseSubmitBehavior="false" OnClick="BtnSL_Click" Text="受理"></dx:ASPxButton>
                                <dx:ASPxButton ID="BtnBSL" runat="server" UseSubmitBehavior="false" OnClick="BtnBSL_Click" Text="不受理"></dx:ASPxButton>
                                <%--<dx:ASPxButton ID="ASPxButton2" runat="server" UseSubmitBehavior="false" Text="放弃" AutoPostBack="false">
                                    <ClientSideEvents Click="function(s,e){window.close();}" />
                                </dx:ASPxButton>--%>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
